package com.stepin2it.spring2013.spring2013app;

public class Person 
{

	private String mName;
	
	private int mAge;
	
	public static final String mTag = "PersonTag";
	
	public Person(String aName)
	{
		this.setName(aName);
	}
	
	public Person(String aName, int aAge)
	{
		this.mName = aName;
		this.mAge = aAge;
	}
	
	public Person()
	{
		this.mName = "default";
		this.mAge = 25;
	}
	
	public String getName() {
		return mName;
	}

	public void setName(String aName) {
		this.mName = aName;
	}
	
	public int getAge()
	{
		return mAge;
	}
	
	public void setAge(int aAge)
	{
		this.mAge = aAge;
	}

	
	
	
	
	// let's create an entry point
	public static void main(String[] args)
	{
		System.out.println("Entry Point");
		Person p = new Person("Bob Smith", 20);
		System.out.println(p.getName());
		System.out.println(p.getAge());
		
		String name = "this is local variable";
		Integer myint = 10;
		
		System.out.println(mTag + "test" + myint.toString() );
		
	}
	
	public void methodForDemonstratingOverloading()
	{
		System.out.println("Default signature");
	}
	public void methodForDemonstratingOverloading(String aName)
	{
		System.out.println("Running Processing on" + aName);
	}
}
